43
I felt like replying as well, explaining the same thing as the others a bit differently. I am sure you know most of this, but it might help someone else.
我感觉自己也在回答,解释和其他人一样的事情有点不同。我相信你知道其中的大部分,但它可能会帮助别人。
The
的
href="#"
part is a commonly used way to make sure the link doesn't lead anywhere on it's own. the #-attribute is used to create a link to some other section in the same document. For example clicking a link of this kind:
part是一种常用的方法,以确保链接不会在自己的任何地方产生。#-属性用于在同一文档中创建指向其他部分的链接。例如点击此类链接:
Go to news
will take you to wherever you have the
会带你去哪里?
code. So if you specify # without any name like in your case, the link leads nowhere.
代码。因此,如果您指定#没有任何名称,例如在您的例子中,链接不会导致任何结果。
The
的
class="view"
part gives it an identifier that CSS or Javascript can use. Inside the CSS-files (if you have any) you will find specific styling procedures on all the elements tagged with the "view"-class.
部分给出了CSS或Javascript可以使用的标识符。在css文件中(如果有的话),您将在所有标记为“view”类的元素上找到特定的样式化过程。
To find out where the URL is specified I would look in the Javascript code. It is either written directly in the same document or included from another file.
要找到URL的指定位置,我将查看Javascript代码。它可以直接写在同一个文档中,也可以从另一个文件中包含。
Search your source code for something like:
搜索您的源代码,例如:
or
或
and then search for any reference to your "view"-class. An included Javascript file can look something like this:
然后搜索你的“视图”类的任何引用。一个包含的Javascript文件可以是这样的:
In that case, open Javascript.js under the "include" folder and search in that file. Most commonly the includes are placed between
and
or close to the
-tag.
在这种情况下,打开Javascript。js在“include”文件夹下,在该文件中搜索。最常见的包括在和之间或接近-tag之间。
A faster way to find the link is to search for the actual link it goes to. For example, if you are directed to http://www.google.com/search?q=html when you click it, search for "google.com" or something in all the files you have in your web project, just remember the included files.
找到链接的更快的方法是搜索它所指向的实际链接。例如,如果你被定向到http://www.google.com/search?当你点击它,搜索“google。com”或者你在你的网络项目中所有的文件,只要记住包含的文件。
In many text editors you can open all the files at once, and then search in them all for something.
在许多文本编辑器中,您可以同时打开所有的文件,然后在它们中搜索所有的内容。